<?php
include("loadconfig.php");
?>
<!DOCTYPE html>
<html lang="en">
  <?php $page_title= getLocalText("ui_users");?>
  <?php include("./elements/header.php"); ?>
  <body>
  	<div class="container">
	<?php 
	if(isAdmin()){
		include("./elements/adminnavbar.php");
	}else{
		include("./elements/navbar.php");
	}
	?>
	<br/>
		<table class="table table-hover">
			<thead>
				<tr>
					<th><?php echo getLocalText("user_id");?></th>
					<th><?php echo getLocalText("user_first_name");?></th>
					<th><?php echo getLocalText("user_last_name");?></th>
					<th><?php echo getLocalText("user_email");?></th>
					<th><?php echo getLocalText("user_admin");?></th>
					<th><?php echo getLocalText("options");?></th>
				</tr>
			</thead>
			<tbody id="user_list">
			
			</tbody>
		</table>
    </div>
	<!-- modals -->
	<?php include("./elements/modals.php");?>
	<!-- end modals -->
	<script language="javascript">getAllUsers();</script>
    <?php include("./elements/footer.php");?>
  </body>
</html>
